# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=kismon
pkgver=1.0.3
pkgrel=7
pkgdesc='GUI client for kismet (wireless scanner/sniffer/monitor).'
groups=('blackarch' 'blackarch-wireless')
arch=('any')
url='https://www.salecker.org/software/kismon.html'
license=('BSD')
depends=('python' 'gtk3' 'gobject-introspection-runtime' 'python-simplejson'
         'python-cairo' 'osm-gps-map' 'python-gobject' 'python-requests'
         'python-lxml' 'kismet' 'python-kismet-rest')
makedepends=('python-setuptools')
source=("http://files.salecker.org/kismon/$pkgname-$pkgver.tar.gz")
sha512sums=('0d2b24be8f109af2d3736bc28471c23ec0a5e2dead06b28e8c6ec560e7ab0a3f7400c0ec024e5d02335f454722ffb626b06d93fa3aa6862f0d40bbd2281a1c7e')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

